# Create your views here.
from django.contrib.auth.decorators import login_required
from django.views.generic import list_detail

from hosting.profiles.models import Profile

@login_required
def profile_detail(request):
    return list_detail.object_detail(
        request,
        queryset = Profile.objects.all(),
        slug = request.user,
        slug_field = 'user',
        template_object_name = 'profile',
    )
